package com.limeng.model;

import java.util.HashSet;
import java.util.Set;

import com.limeng.model.bean.AddressB;

public class Address {

	public Address() {
	}

	private Long addressID;
	private String street;
	private String city;
	private String zip;
	private String country;
	private Set<Contact> contacts=new HashSet<Contact>();


	public void setAddressID(Long addressID) {
		this.addressID = addressID;
	}

	public Long getAddressID() {
		return addressID;
	}
	
	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public void setContacts(Set<Contact> contacts) {
		this.contacts = contacts;
	}

	public Set<Contact> getContacts() {
		return contacts;
	}
	
	public AddressB getBean()
	{
		AddressB addressB=new AddressB();
		addressB.setAddressID(this.getAddressID());
		addressB.setStreet(this.getStreet());
		addressB.setZip(this.getZip());
		addressB.setCity(this.getCity());
		addressB.setCountry(this.getCountry());
		return addressB;
	}


}
